<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title><fmt:message key="budgetMenu.title" />
		</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="description"
			content="<fmt:message key="budgetMenu.title" />">

		<meta name="heading" content="<fmt:message key='budgetList.heading'/>" />
	</head>

	<body>
		<input type="button" name="createBudgetInfo" onclick="location.href='<c:url value='/budget/newBudget.html'/>'" value="<fmt:message key="budget.info.newcenter"/>" />
		<display:table name="budgetList" cellspacing="0" cellpadding="0" excludedParams="*"
			requestURI="/budget/budlist.html" defaultsort="1" id="budgetInfo" pagesize="10" class="table"
			export="false">
			<display:column property="bcId" escapeXml="true" sortable="false"
				titleKey="budget.list.bc.id" />
			<display:column property="bcName" escapeXml="true" sortable="false"
				titleKey="budget.list.bc.name" />
			<display:column titleKey="budget.list.bc.manager" >
				${budgetInfo.user.email}
			</display:column>
			<security:authorize ifAllGranted="ROLE_ADMIN">
				<display:column sortProperty="enabled" escapeXml="true" sortable="true" titleKey="budget.list.bc.isvalid" >
					<c:if test="${budgetInfo.bcValid}">
						<fmt:message key='condition.yes'/>
					</c:if>
					
					<c:if test="${!budgetInfo.bcValid}">
						<fmt:message key='condition.no'/>
					</c:if>
				</display:column>
			</security:authorize>
			<display:column titleKey="budget.info.vacation" sortable="true">
				<c:if test="${budgetInfo.vacation }"><fmt:message key='condition.yes'/></c:if>
				<c:if test="${!budgetInfo.vacation }"><fmt:message key='condition.no'/></c:if>
			</display:column>
			<%--<display:column property="bcDec" escapeXml="true" sortable="true" titleKey="budget.list.bc.description"  />--%>
			<display:column sortProperty="enabled" sortable="false"
				titleKey="budget.list.bc.operation">
				<a href="<c:url value="/budget/delBudgetInfo.html?id=${budgetInfo.id}" />" target="_self"><fmt:message key='button.delete'/></a>&nbsp;&nbsp;<a href="<c:url value="/budget/getBudgetInfo.html?id=${budgetInfo.id}" />" target="_self"><fmt:message key='button.modify'/></a>
			</display:column>
			
			
			<display:setProperty name="paging.banner.item_name" value="" />
			<display:setProperty name="paging.banner.items_name" value="" />
		</display:table>

	</body>
</html>
